#include<stdio.h>
#include<conio.h>
void main()
{
	int a, i = 0, j;
	char b[12];

	clrscr();

	printf("\n\n\n\n\tTo Escape Press ESC key");

	printf("\n\n\tPlease Enter Mobile number: ");

	while(1)
	{
		//window(38, 7+2*i, 80, 25);
		//a = getche();

		if(a == 27 )
		{
			 break;
		}

		if(i > 11)
		{
			 break;
		}
		//  a = getche();
		//Take inout on exact location
		window(37, 7+i, 80, 25);

		a = getche();

	   //	if(a == 27 )
	   //	{
		//	 break;
	  //	}
		//a = getche();

		if(a >= 48 && a <= 57)
		{
			printf("   It is a Numeric Number");
			b[i] = a;
			i++;
		}
		else
		{
			printf("It is invalid number");
		}
	}

	printf("\n\n\tYour Mobile no is: ");

	for(j = 0; j < i; j++)
	{
		printf("%c ", b[j]);
	}

	getche();
}